Skip to content

feat(auth): add --with-token flag to read token from stdin#313

Merged
fargito merged 1 commit intomainfrom
cod-2547-refresh-cli-token
Apr 24, 2026
Merged

feat(auth): add --with-token flag to read token from stdin#313
fargito merged 1 commit intomainfrom
cod-2547-refresh-cli-token

Conversation

@fargito
Copy link
Copy Markdown
Member

@fargito fargito commented Apr 24, 2026

Add ability to run codspeed auth login --with-token, reading the token from stdin instead of performing the normal login flow.

Example: echo "co1_xxxxxxx" | codspeed auth login --with-token

This matches the behavior of the gh CLI: https://cli.github.com/manual/gh_auth_login

@fargito fargito self-assigned this Apr 24, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 24, 2026

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing cod-2547-refresh-cli-token (7917f2c) with main (7e93351)

Open in CodSpeed

Copy link
Copy Markdown
Contributor

@GuillaumeLagrange GuillaumeLagrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

olgtm

Comment thread src/cli/auth.rs
@fargito fargito merged commit 7917f2c into main Apr 24, 2026
18 checks passed
@fargito fargito deleted the cod-2547-refresh-cli-token branch April 24, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants